<?php

class myUser extends sfGuardSecurityUser
{    
    public $menu;
    
    public function SwitchOrderOption($order)
    {
        $this->setAttribute('orderOption', ($order<>$this->getAttribute('orderField'))?true:!$this->getAttribute('orderOption',true));  
        return $this->getAttribute('orderOption')?'ASC':'DESC';
     }   
      
    public function setOrderField($order)
    {
        $this->setAttribute('orderField', $order);
    }   
    
    public function getOrderField()
    {
        return $this->getAttribute('orderField');
    }
    
}   
    
   
